/**
 * 上传文件相关类型定义
 */

// 上传文件列表项定义
export interface UploadFile {
    name: string;
    url: string;
    size?: number;
    type?: string;
    uid?: string;
    status?: string;
    percentage?: number;
    raw?: File;
}

//
// // 文件上传响应
// export interface UploadResponse {
//     code: number;
//     success: boolean;
//     message: string;
//     data: string;
// }

// 上传错误
export interface UploadError {
    message?: string;
    status?: number;
    name?: string;
    response?: {
        data?: {
            message?: string;
        };
    };
} 